package com.sw.bbs.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sw.bbs.common.constant.BBSConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Desc: No Desc
 * @Author: wusonghe
 * @Date: 2019/3/8 15:06
 */

@Data
@ApiModel("注册请求体")
public class RegisterRequest {

    @ApiModelProperty("手机号码")
    private String phone;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("验证码 1.手机服务才开通")
    private String captcha;

    @ApiModelProperty("生日")
    @JsonFormat(pattern = BBSConstant.DATE_FORMAT, timezone = BBSConstant.DATE_TIMEZONE)
    @DateTimeFormat(pattern = BBSConstant.DATE_FORMAT)
    private Date birthday;

    @ApiModelProperty("性别 1.男 2.女")
    private Integer sex;

    @ApiModelProperty("城市")
    private String city;






}

